home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / nrand.c < prev    next >
MacBinary  |  1995-07-19  |  3.3 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: nrand.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Jul 19 19:46:45 1995, modified Wed Jul 19 19:46:45 1995, creator 'CWIE', type ASCII, 2662 bytes "nrand.c" , at 0xae6 488 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 6e 72 61 6e 64 2e | 63 00 00 00 00 00 00 00 |..nrand.|c.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0a 66 00 | 00 01 e8 ac 33 49 e5 ac |......f.|....3I..|
|00000060| 33 49 e5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |3I......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b0 f6 00 00 |........|........|
|00000080| 2f 2a 0d 6e 72 61 6e 64 | 2e 63 0d 6e 72 61 6e 64 |/*.nrand|.c.nrand|
|00000090| 28 6e 29 20 72 65 74 75 | 72 6e 73 20 61 20 72 61 |(n) retu|rns a ra|
|000000a0| 6e 64 6f 6d 20 69 6e 74 | 65 67 65 72 20 69 6e 20 |ndom int|eger in |
|000000b0| 74 68 65 20 72 61 6e 67 | 65 20 5b 30 2c 20 6e 2d |the rang|e [0, n-|
|000000c0| 31 5d 2c 20 70 72 6f 76 | 69 64 65 64 20 6e 3e 30 |1], prov|ided n>0|
|000000d0| 2e 20 49 66 20 6e 20 69 | 73 20 7a 65 72 6f 0d 74 |. If n i|s zero.t|
|000000e0| 68 65 20 72 65 74 75 72 | 6e 65 64 20 76 61 6c 75 |he retur|ned valu|
|000000f0| 65 20 69 73 20 7a 65 72 | 6f 2e 0d 0d 6e 72 61 6e |e is zer|o...nran|
|00000100| 64 55 28 29 20 61 6e 64 | 20 6e 72 61 6e 64 55 4c |dU() and| nrandUL|
|00000110| 28 29 20 61 72 65 20 6f | 62 73 6f 6c 65 74 65 3b |() are o|bsolete;|
|00000120| 20 75 73 65 20 6e 72 61 | 6e 64 28 29 20 69 6e 73 | use nra|nd() ins|
|00000130| 74 65 61 64 2e 0d 0d 4e | 4f 54 45 3a 0d 46 72 61 |tead...N|OTE:.Fra|
|00000140| 6e 73 20 43 6f 72 6e 65 | 6c 69 73 73 65 6e 20 73 |ns Corne|lissen s|
|00000150| 68 6f 77 65 64 20 6d 65 | 20 61 6e 6f 74 68 65 72 |howed me| another|
|00000160| 20 77 61 79 20 74 6f 20 | 69 6d 70 6c 65 6d 65 6e | way to |implemen|
|00000170| 74 20 6e 72 61 6e 64 3a | 20 72 61 6e 64 28 29 25 |t nrand:| rand()%|
|00000180| 6e 20 6f 72 0d 72 61 6e | 64 55 28 29 25 6e 2c 20 |n or.ran|dU()%n, |
|00000190| 69 6e 73 74 65 61 64 20 | 6f 66 20 6d 79 20 6e 2a |instead |of my n*|
|000001a0| 72 61 6e 64 28 29 3e 3e | 31 35 20 6f 72 20 6e 2a |rand()>>|15 or n*|
|000001b0| 72 61 6e 64 55 28 29 3e | 3e 31 36 2e 20 49 20 75 |randU()>|>16. I u|
|000001c0| 73 65 64 20 54 69 6d 65 | 43 50 55 20 74 6f 0d 63 |sed Time|CPU to.c|
|000001d0| 6f 6d 70 61 72 65 20 74 | 68 65 20 73 70 65 65 64 |ompare t|he speed|
|000001e0| 73 3b 20 74 68 65 79 27 | 72 65 20 61 62 6f 75 74 |s; they'|re about|
|000001f0| 20 74 68 65 20 73 61 6d | 65 3a 0d 20 20 20 20 20 | the sam|e:. |
|00000200| 32 32 2e 33 36 32 20 b5 | 73 09 69 3d 6e 72 61 6e |22.362 .|s.i=nran|
|00000210| 64 28 31 32 37 29 3b 0d | 20 20 20 20 20 31 39 2e |d(127);.| 19.|
|00000220| 36 38 34 20 b5 73 09 69 | 3d 31 32 37 4c 2a 72 61 |684 .s.i|=127L*ra|
|00000230| 6e 64 55 28 29 3e 3e 31 | 36 3b 0d 20 20 20 20 20 |ndU()>>1|6;. |
|00000240| 31 38 2e 32 32 36 20 b5 | 73 09 69 3d 31 32 37 4c |18.226 .|s.i=127L|
|00000250| 2a 72 61 6e 64 28 29 3e | 3e 31 35 3b 0d 20 20 20 |*rand()>|>15;. |
|00000260| 20 20 32 30 2e 38 39 31 | 20 b5 73 09 69 3d 72 61 | 20.891| .s.i=ra|
|00000270| 6e 64 55 28 29 25 28 75 | 6e 73 69 67 6e 65 64 20 |ndU()%(u|nsigned |
|00000280| 73 68 6f 72 74 29 31 32 | 37 3b 0d 20 20 20 20 20 |short)12|7;. |
|00000290| 32 30 2e 34 39 38 20 b5 | 73 09 69 3d 72 61 6e 64 |20.498 .|s.i=rand|
|000002a0| 28 29 25 31 32 37 3b 0d | 54 68 69 73 20 77 61 73 |()%127;.|This was|
|000002b0| 20 6f 6e 20 61 20 50 6f | 77 65 72 42 6f 6f 6b 20 | on a Po|werBook |
|000002c0| 31 37 30 2c 20 63 6f 6d | 70 69 6c 65 64 20 62 79 |170, com|piled by|
|000002d0| 20 43 6f 64 65 57 61 72 | 72 69 6f 72 20 35 2e 35 | CodeWar|rior 5.5|
|000002e0| 20 75 73 69 6e 67 20 34 | 2d 62 79 74 65 20 69 6e | using 4|-byte in|
|000002f0| 74 73 2e 0d 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |ts..Note| that th|
|00000300| 65 20 6f 76 65 72 68 65 | 61 64 20 6f 66 20 63 61 |e overhe|ad of ca|
|00000310| 6c 6c 69 6e 67 20 74 68 | 65 20 6e 72 61 6e 64 28 |lling th|e nrand(|
|00000320| 29 20 73 75 62 72 6f 75 | 74 69 6e 65 20 28 61 6e |) subrou|tine (an|
|00000330| 64 20 69 74 73 20 74 65 | 73 74 20 6f 66 20 6e 29 |d its te|st of n)|
|00000340| 2c 0d 61 73 20 6f 70 70 | 6f 73 65 64 20 74 6f 20 |,.as opp|osed to |
|00000350| 65 76 61 6c 75 61 74 69 | 6e 67 20 74 68 65 20 63 |evaluati|ng the c|
|00000360| 6f 64 65 20 69 6e 6c 69 | 6e 65 2c 20 69 73 20 6f |ode inli|ne, is o|
|00000370| 6e 6c 79 20 33 20 b5 73 | 20 6f 75 74 20 6f 66 20 |nly 3 .s| out of |
|00000380| 32 32 20 b5 73 2e 0d 0d | 48 49 53 54 4f 52 59 3a |22 .s...|HISTORY:|
|00000390| 0d 34 2f 32 39 2f 38 38 | 09 64 67 70 09 77 72 6f |.4/29/88|.dgp.wro|
|000003a0| 74 65 20 69 74 2e 0d 33 | 2f 31 39 2f 39 30 09 64 |te it..3|/19/90.d|
|000003b0| 67 70 09 6d 61 64 65 20 | 69 74 20 70 6f 72 74 61 |gp.made |it porta|
|000003c0| 62 6c 65 20 62 65 74 77 | 65 65 6e 20 54 48 49 4e |ble betw|een THIN|
|000003d0| 4b 20 43 20 61 6e 64 20 | 4d 50 57 20 43 2e 0d 39 |K C and |MPW C..9|
|000003e0| 2f 31 33 2f 39 32 09 64 | 67 70 09 55 73 69 6e 67 |/13/92.d|gp.Using|
|000003f0| 20 54 48 49 4e 4b 20 43 | 27 73 20 44 69 73 61 73 | THINK C|'s Disas|
|00000400| 73 65 6d 62 6c 65 72 20 | 49 20 6e 6f 74 69 63 65 |sembler |I notice|
|00000410| 64 20 74 68 61 74 20 49 | 20 63 6f 75 6c 64 20 73 |d that I| could s|
|00000420| 75 62 73 74 61 6e 74 69 | 61 6c 6c 79 20 73 70 65 |ubstanti|ally spe|
|00000430| 65 64 0d 09 09 09 75 70 | 20 74 68 65 20 63 6f 64 |ed....up| the cod|
|00000440| 65 2c 20 72 65 70 6c 61 | 63 69 6e 67 20 74 68 65 |e, repla|cing the|
|00000450| 20 6c 6f 6e 67 20 64 69 | 76 69 73 69 6f 6e 20 62 | long di|vision b|
|00000460| 79 20 61 20 62 69 74 20 | 73 68 69 66 74 2e 20 54 |y a bit |shift. T|
|00000470| 68 65 20 61 6e 73 77 65 | 72 73 20 66 6f 72 20 0d |he answe|rs for .|
|00000480| 09 09 09 6c 65 67 61 6c | 20 76 61 6c 75 65 73 20 |...legal| values |
|00000490| 6f 66 20 6e 2c 20 69 2e | 65 2e 20 6e 3e 30 2c 20 |of n, i.|e. n>0, |
|000004a0| 61 72 65 20 75 6e 63 68 | 61 6e 67 65 64 2c 20 62 |are unch|anged, b|
|000004b0| 75 74 20 74 68 65 20 61 | 6e 73 77 65 72 73 20 66 |ut the a|nswers f|
|000004c0| 6f 72 20 76 61 6c 75 65 | 73 20 6f 66 20 0d 09 09 |or value|s of ...|
|000004d0| 09 6e 20 6f 75 74 73 69 | 64 65 20 74 68 61 74 20 |.n outsi|de that |
|000004e0| 72 61 6e 67 65 20 68 61 | 76 65 20 63 68 61 6e 67 |range ha|ve chang|
|000004f0| 65 64 20 62 65 63 61 75 | 73 65 20 49 20 6e 6f 77 |ed becau|se I now|
|00000500| 20 65 78 70 6c 69 63 69 | 74 6c 79 20 63 61 73 74 | explici|tly cast|
|00000510| 20 6e 0d 09 09 09 74 6f | 20 75 6e 73 69 67 6e 65 | n....to| unsigne|
|00000520| 64 20 6c 6f 6e 67 20 72 | 61 74 68 65 72 20 74 68 |d long r|ather th|
|00000530| 61 6e 20 6c 6f 6e 67 2e | 20 28 42 69 74 20 73 68 |an long.| (Bit sh|
|00000540| 69 66 74 69 6e 67 20 61 | 6e 64 20 64 69 76 69 73 |ifting a|nd divis|
|00000550| 69 6f 6e 20 67 69 76 65 | 20 64 69 66 66 65 72 65 |ion give| differe|
|00000560| 6e 74 0d 09 09 09 61 6e | 73 77 65 72 73 20 77 68 |nt....an|swers wh|
|00000570| 65 6e 20 74 68 65 20 6e | 75 6d 65 72 61 74 6f 72 |en the n|umerator|
|00000580| 20 69 73 20 6e 65 67 61 | 74 69 76 65 2e 29 0d 09 | is nega|tive.)..|
|00000590| 09 09 41 64 64 65 64 20 | 6e 72 61 6e 64 55 28 29 |..Added |nrandU()|
|000005a0| 20 61 6e 64 20 6e 72 61 | 6e 64 55 4c 28 29 2e 0d | and nra|ndUL()..|
|000005b0| 39 2f 31 38 2f 39 32 09 | 64 67 70 09 43 61 73 74 |9/18/92.|dgp.Cast|
|000005c0| 20 72 61 6e 64 28 29 20 | 66 72 6f 6d 20 69 6e 74 | rand() |from int|
|000005d0| 20 74 6f 20 75 6e 73 69 | 67 6e 65 64 20 73 68 6f | to unsi|gned sho|
|000005e0| 72 74 20 74 6f 20 70 72 | 6f 6d 70 74 20 54 48 49 |rt to pr|ompt THI|
|000005f0| 4e 4b 20 43 20 74 6f 20 | 67 65 6e 65 72 61 74 65 |NK C to |generate|
|00000600| 20 0d 09 09 09 74 69 67 | 68 74 65 72 20 63 6f 64 | ....tig|hter cod|
|00000610| 65 2e 0d 33 2f 32 36 2f | 39 34 09 64 67 70 20 52 |e..3/26/|94.dgp R|
|00000620| 65 70 6c 61 63 65 64 20 | 61 6c 6c 20 74 68 72 65 |eplaced |all thre|
|00000630| 65 20 72 6f 75 74 69 6e | 65 73 20 28 6e 72 61 6e |e routin|es (nran|
|00000640| 64 2c 20 6e 72 61 6e 64 | 55 2c 20 61 6e 64 20 6e |d, nrand|U, and n|
|00000650| 72 61 6e 64 55 4c 29 20 | 62 79 20 6f 6e 65 20 75 |randUL) |by one u|
|00000660| 6e 69 76 65 72 73 61 6c | 0d 09 09 09 72 6f 75 74 |niversal|....rout|
|00000670| 69 6e 65 2c 20 6e 72 61 | 6e 64 2c 20 74 68 61 74 |ine, nra|nd, that|
|00000680| 20 75 73 65 73 20 69 6e | 74 65 67 65 72 20 61 72 | uses in|teger ar|
|00000690| 69 74 68 6d 65 74 69 63 | 20 28 61 73 20 69 6e 20 |ithmetic| (as in |
|000006a0| 6e 72 61 6e 64 55 29 20 | 69 66 20 6e 20 69 73 20 |nrandU) |if n is |
|000006b0| 73 6d 61 6c 6c 20 0d 09 | 09 09 65 6e 6f 75 67 68 |small ..|..enough|
|000006c0| 2c 20 61 6e 64 20 6f 74 | 68 65 72 77 69 73 65 20 |, and ot|herwise |
|000006d0| 75 73 65 73 20 64 6f 75 | 62 6c 65 20 61 72 69 74 |uses dou|ble arit|
|000006e0| 68 6d 65 74 69 63 20 28 | 61 73 20 69 6e 20 6e 72 |hmetic (|as in nr|
|000006f0| 61 6e 64 55 4c 29 2e 20 | 48 6f 77 65 76 65 72 2c |andUL). |However,|
|00000700| 0d 09 09 09 65 76 65 6e | 20 66 6f 72 20 73 6d 61 |....even| for sma|
|00000710| 6c 6c 20 6e 2c 20 74 68 | 65 20 6e 65 77 20 72 6f |ll n, th|e new ro|
|00000720| 75 74 69 6e 65 20 64 69 | 66 66 65 72 73 20 66 72 |utine di|ffers fr|
|00000730| 6f 6d 20 74 68 65 20 6f | 6c 64 20 6e 72 61 6e 64 |om the o|ld nrand|
|00000740| 55 28 29 20 62 65 63 61 | 75 73 65 0d 09 09 09 49 |U() beca|use....I|
|00000750| 20 72 65 70 6c 61 63 65 | 64 20 74 68 65 20 63 61 | replace|d the ca|
|00000760| 6c 6c 20 74 6f 20 72 61 | 6e 64 28 29 20 62 79 20 |ll to ra|nd() by |
|00000770| 61 20 63 61 6c 6c 20 74 | 6f 20 72 61 6e 64 55 28 |a call t|o randU(|
|00000780| 29 20 62 65 63 61 75 73 | 65 20 74 68 69 73 0d 09 |) becaus|e this..|
|00000790| 09 09 61 6c 6c 6f 77 73 | 20 75 73 20 74 6f 20 75 |..allows| us to u|
|000007a0| 73 65 20 69 6e 74 65 67 | 65 72 20 61 72 69 74 68 |se integ|er arith|
|000007b0| 6d 65 74 69 63 20 66 6f | 72 20 76 61 6c 75 65 73 |metic fo|r values|
|000007c0| 20 6f 66 20 6e 20 75 70 | 20 74 6f 0d 09 09 09 55 | of n up| to....U|
|000007d0| 53 48 52 54 5f 4d 41 58 | 20 69 6e 73 74 65 61 64 |SHRT_MAX| instead|
|000007e0| 20 6f 66 20 6a 75 73 74 | 20 53 48 52 54 5f 4d 41 | of just| SHRT_MA|
|000007f0| 58 2e 09 09 0d 2a 2f 0d | 23 69 6e 63 6c 75 64 65 |X....*/.|#include|
|00000800| 20 22 56 69 64 65 6f 54 | 6f 6f 6c 62 6f 78 2e 68 | "VideoT|oolbox.h|
|00000810| 22 0d 0d 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |"..unsig|ned long|
|00000820| 20 6e 72 61 6e 64 28 75 | 6e 73 69 67 6e 65 64 20 | nrand(u|nsigned |
|00000830| 6c 6f 6e 67 20 6e 29 0d | 7b 0d 09 69 66 28 55 4c |long n).|{..if(UL|
|00000840| 4f 4e 47 5f 4d 41 58 2f | 55 53 48 52 54 5f 4d 41 |ONG_MAX/|USHRT_MA|
|00000850| 58 2f 55 53 48 52 54 5f | 4d 41 58 3e 3d 31 20 26 |X/USHRT_|MAX>=1 &|
|00000860| 26 20 6e 3c 3d 55 53 48 | 52 54 5f 4d 41 58 29 72 |& n<=USH|RT_MAX)r|
|00000870| 65 74 75 72 6e 20 6e 2a | 72 61 6e 64 55 28 29 3e |eturn n*|randU()>|
|00000880| 3e 31 36 3b 0d 09 65 6c | 73 65 20 72 65 74 75 72 |>16;..el|se retur|
|00000890| 6e 20 28 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |n (unsig|ned long|
|000008a0| 29 28 28 64 6f 75 62 6c | 65 29 6e 2a 72 61 6e 64 |)((doubl|e)n*rand|
|000008b0| 55 4c 28 29 2f 28 55 4c | 4f 4e 47 5f 4d 41 58 2b |UL()/(UL|ONG_MAX+|
|000008c0| 31 2e 30 29 29 3b 0d 7d | 0d 0d 23 69 66 20 30 09 |1.0));.}|..#if 0.|
|000008d0| 2f 2a 20 4f 6c 64 20 76 | 65 72 73 69 6f 6e 2c 20 |/* Old v|ersion, |
|000008e0| 62 65 66 6f 72 65 20 4d | 61 72 63 68 2c 20 31 39 |before M|arch, 19|
|000008f0| 39 34 2e 20 2a 2f 0d 09 | 69 6e 74 20 6e 72 61 6e |94. */..|int nran|
|00000900| 64 28 73 68 6f 72 74 20 | 6e 29 0d 09 7b 0d 09 09 |d(short |n)..{...|
|00000910| 61 73 73 65 72 74 28 52 | 41 4e 44 5f 4d 41 58 2b |assert(R|AND_MAX+|
|00000920| 31 55 4c 3d 3d 31 55 4c | 3c 3c 31 35 29 3b 0d 09 |1UL==1UL|<<15);..|
|00000930| 09 72 65 74 75 72 6e 20 | 28 75 6e 73 69 67 6e 65 |.return |(unsigne|
|00000940| 64 20 6c 6f 6e 67 29 6e | 2a 72 61 6e 64 28 29 3e |d long)n|*rand()>|
|00000950| 3e 31 35 3b 0d 09 7d 0d | 09 09 0d 09 23 69 66 20 |>15;..}.|....#if |
|00000960| 52 41 4e 44 5f 4d 41 58 | 20 3e 20 55 4c 4f 4e 47 |RAND_MAX| > ULONG|
|00000970| 5f 4d 41 58 2f 55 53 48 | 52 54 5f 4d 41 58 0d 09 |_MAX/USH|RT_MAX..|
|00000980| 09 23 65 72 72 6f 72 20 | 22 6e 72 61 6e 64 55 28 |.#error |"nrandU(|
|00000990| 29 20 61 73 73 75 6d 65 | 73 20 74 68 61 74 20 61 |) assume|s that a|
|000009a0| 6e 20 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 |n unsign|ed long |
|000009b0| 63 61 6e 20 68 6f 6c 64 | 20 74 68 65 20 70 72 6f |can hold| the pro|
|000009c0| 64 75 63 74 20 6f 66 20 | 75 6e 73 69 67 6e 65 64 |duct of |unsigned|
|000009d0| 20 73 68 6f 72 74 20 26 | 20 72 61 6e 64 28 29 2e | short &| rand().|
|000009e0| 22 0d 09 23 65 6e 64 69 | 66 0d 09 0d 09 75 6e 73 |"..#endi|f....uns|
|000009f0| 69 67 6e 65 64 20 73 68 | 6f 72 74 20 6e 72 61 6e |igned sh|ort nran|
|00000a00| 64 55 28 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |dU(unsig|ned shor|
|00000a10| 74 20 6e 29 0d 09 7b 0d | 09 09 61 73 73 65 72 74 |t n)..{.|..assert|
|00000a20| 28 52 41 4e 44 5f 4d 41 | 58 2b 31 55 4c 3d 3d 31 |(RAND_MA|X+1UL==1|
|00000a30| 55 4c 3c 3c 31 35 29 3b | 0d 09 09 72 65 74 75 72 |UL<<15);|...retur|
|00000a40| 6e 20 28 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |n (unsig|ned long|
|00000a50| 29 6e 2a 28 75 6e 73 69 | 67 6e 65 64 20 73 68 6f |)n*(unsi|gned sho|
|00000a60| 72 74 29 72 61 6e 64 28 | 29 3e 3e 31 35 3b 0d 09 |rt)rand(|)>>15;..|
|00000a70| 7d 0d 0d 09 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |}...unsi|gned lon|
|00000a80| 67 20 6e 72 61 6e 64 55 | 4c 28 75 6e 73 69 67 6e |g nrandU|L(unsign|
|00000a90| 65 64 20 6c 6f 6e 67 20 | 6e 29 0d 09 7b 0d 09 09 |ed long |n)..{...|
|00000aa0| 72 65 74 75 72 6e 20 28 | 75 6e 73 69 67 6e 65 64 |return (|unsigned|
|00000ab0| 20 6c 6f 6e 67 29 28 28 | 64 6f 75 62 6c 65 29 6e | long)((|double)n|
|00000ac0| 2a 72 61 6e 64 55 4c 28 | 29 2f 28 55 4c 4f 4e 47 |*randUL(|)/(ULONG|
|00000ad0| 5f 4d 41 58 2b 31 2e 30 | 29 29 3b 20 0d 09 7d 0d |_MAX+1.0|)); ..}.|
|00000ae0| 23 65 6e 64 69 66 00 00 | 00 00 00 00 00 00 00 00 |#endif..|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 01 00 00 00 01 96 | 00 00 00 96 00 00 00 52 |........|.......R|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 07 6e 72 61 6e 64 2e 63 | 02 00 00 00 54 45 58 54 |.nrand.c|....TEXT|
|00000b40| 43 57 49 45 01 00 00 78 | 03 c0 00 00 00 00 ad 8c |CWIE...x|........|
|00000b50| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 78 03 c0 |..TEXTCW|IE...x..|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 a6 d9 59 a8 00 00 | 0a 66 00 00 01 e8 00 00 |....Y...|.f......|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 00 00 00 3e 00 04 00 00 | 05 64 00 00 05 69 05 6e |...>....|.d...i.n|
|00000c10| 72 61 6e 64 00 00 06 3c | 00 00 06 41 05 6e 72 61 |rand...<|...A.nra|
|00000c20| 6e 64 00 00 07 3c 00 00 | 07 42 07 6e 72 61 6e 64 |nd...<..|.B.nrand|
|00000c30| 55 00 00 00 07 c2 00 00 | 07 c9 07 6e 72 61 6e 64 |U.......|...nrand|
|00000c40| 55 4c 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |UL...H..|Monaco..|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 50 00 09 |........|.....P..|
|00000c70| 01 80 02 68 00 50 00 09 | 01 80 02 68 ac 33 11 b3 |...h.P..|...h.3..|
|00000c80| 00 00 08 76 00 00 08 76 | 00 00 01 4f 01 00 00 00 |...v...v|...O....|
|00000c90| 00 04 00 01 00 01 00 00 | 01 00 00 00 01 96 00 00 |........|........|
|00000ca0| 00 96 00 00 00 52 00 59 | 82 58 2a 9a 00 00 00 1c |.....R.Y|.X*.....|
|00000cb0| 00 52 00 01 4d 50 53 52 | 00 01 00 12 4d 57 42 42 |.R..MPSR|....MWBB|
|00000cc0| 00 00 00 2a 03 ef ff ff | 00 00 00 00 00 00 00 00 |...*....|........|
|00000cd0| 03 ed ff ff 00 00 00 42 | 00 00 00 00 03 f0 ff ff |.......B|........|
|00000ce0| 00 00 00 8e 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+